<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>${appname}-<c:if test="${!empty sessionScope._local_node_session}">${sessionScope._local_node_session.nodeName}-</c:if>${si:ctname("NET_TYPE",sessionScope._netType)}</title>
<%@ include file="/WEB-INF/view/common/css_js_ace.jsp"%>
<style type="text/css">
.xmlContent{
	min-height:200px;
}

.profile-info-name{
	width:180px;
}
.profile-info-value{
	margin-left:180px;
}
</style>
<script type="text/javascript">

$(function(){
	$('.tipMe').tooltip({'placement':'top'});
})

/**
 * 停止QCU
 */
function stopQcu(){
	var btnVal = '<i class="icon-pause"></i> 停止QCU';
	ui.confirm('确认停止QCU?',function(){
		$.ajax({
			   type: "POST",
			   dataType:"json",
			   cache: false,
			   url: _ctx + "/registry/tlq_stop_qcu.do?ip=${ip}",
			   beforeSend:function(){
				   $('#stopQcuBtn').html('正在停止...').attr("disabled","disabled");
			   },
			   success: function(resp){
				   if(resp.status == '1'){
					   ui.msg(resp.msg, 1);
					   ui.go(_ctx + '/registry/tlq_qcu.do');
					   $('#stopQcuBtn').html(btnVal).attr("disabled",null);
				   }else{
					   ui.msg(resp.msg, 0);
					   $('#stopQcuBtn').html(btnVal).attr("disabled",null);
				   }
				   
			   },
			   error:function(){
				   ui.msg('信息加载错误', 0);
				   $('#stopQcuBtn').html(btnVal).attr("disabled",null);
			   }
		});
	});	
}


/**
 * 启动QCU
 */
function startQcu(){
	var btnVal = '<i class="icon-play"></i> 启动QCU';
	ui.confirm('确认启动QCU?',function(){
		$.ajax({
			   type: "POST",
			   dataType:"json",
			   cache: false,
			   url: _ctx + "/registry/tlq_start_qcu.do?ip=${ip}",
			   beforeSend:function(){
				   $('#startQcuBtn').html('正在启动...').attr("disabled","disabled");
			   },
			   success: function(resp){
				   if(resp.status == '1'){
					   ui.msg(resp.msg, 1);
					   ui.go(_ctx + '/registry/tlq_qcu.do');
					   $('#startQcuBtn').html(btnVal).attr("disabled",null);
				   }else{
					   ui.msg(resp.msg, 0);
					   $('#startQcuBtn').html(btnVal).attr("disabled",null);
				   }
			   },
			   error:function(){
				   ui.msg('信息加载错误', 0);
				   $('#startQcuBtn').html(btnVal).attr("disabled",null);
			   }
		});
	});	
}
//初始化所有未初始化的发送队列
function initLqAll(){
	//获取所有未初始化的发送队列
	var $initBnt=$("#lq table tbody td a[name='initBnt'].green");
	if($initBnt.size()<=0){
		alert("所有队列都已初始化完成！");
		return;
	}
	ui.confirm('确定初始化所有本地队列?',function(){
		$initBnt.each(function(i){
			var js=$(this).attr("onclick");
			if(i==$initBnt.size()-1){
				js=js.replace(/\)/,",true,true)");
			}else{
				js=js.replace(/\)/,",true)");
			}
			
			eval("("+js+")");
		});
	});
}

/**
 * 初始化本地队列
 */
function initLq(queueName,obj,flag,last){
	var btn = $(obj);
	if(flag){
		$.ajax({
			   type: "POST",
			   dataType:"json",
			   cache: false,
			   url: _ctx + "/registry/tlq_lq_init.do",
			   data:{queueName:queueName},
			   beforeSend:function(){
				   btn.attr("disabled","disabled");
			   },
			   success: function(resp){
				   if(resp.status == '1'){
					   ui.msg(resp.msg, 1);
					   if(last){
						   ui.go(_ctx + '/registry/tlq_qcu.do');
					   }
				   }else{
					   ui.msg(resp.msg, 0);
				   }
				   btn.attr("disabled","disabled");
			   },
			   error:function(){
				   ui.msg('信息加载错误', 0);
				   btn.attr("disabled","disabled");
			   }
		});
	}else{
		ui.confirm('确定初始化该队列?',function(){
			$.ajax({
				   type: "POST",
				   dataType:"json",
				   cache: false,
				   url: _ctx + "/registry/tlq_lq_init.do",
				   data:{queueName:queueName},
				   beforeSend:function(){
					   btn.attr("disabled","disabled");
				   },
				   success: function(resp){
					   if(resp.status == '1'){
						   ui.msg(resp.msg, 1);
						   ui.go(_ctx + '/registry/tlq_qcu.do');
					   }else{
						   ui.msg(resp.msg, 0);
					   }
					   btn.attr("disabled","disabled");
				   },
				   error:function(){
					   ui.msg('信息加载错误', 0);
					   btn.attr("disabled","disabled");
				   }
			});
		});
	}
}
function reload(obj){
 window.location=_ctx + '/registry/tlq_qcu.do?ip='+$(obj).val();
}

//初始化所有未初始化的发送队列
function initSqAll(){
	//获取所有未初始化的发送队列
	var $initBnt=$("#sq table tbody td a[name='initBnt'].green");
	if($initBnt.size()<=0){
		alert("所有队列都已初始化完成！");
		return;
	}
	ui.confirm('确定初始化所有发送队列?',function(){
		$initBnt.each(function(i){
			var js=$(this).attr("onclick");
			if(i==$initBnt.size()-1){
				js=js.replace(/\)/,",true,true)");
			}else{
				js=js.replace(/\)/,",true)");
			}
			eval("("+js+")");
		});
	});
}


/**
 * 初始化本地队列
 */
function initSq(queueName,destQueueName,destIp,obj,flag,last){
	var btn = $(obj);
	if(flag){
		$.ajax({
			   type: "POST",
			   dataType:"json",
			   cache: false,
			   url: _ctx + "/registry/tlq_sq_init.do",
			   data:{queueName:queueName,destQueueName:destQueueName,destIp:destIp},
			   beforeSend:function(){
				   btn.attr("disabled","disabled");
			   },
			   success: function(resp){
				   if(resp.status == '1'){
					   ui.msg(resp.msg, 1);
					   if(last){
						   ui.go(_ctx + '/registry/tlq_qcu.do');
					   }
				   }else{
					   ui.msg(resp.msg, 0);
				   }
				   btn.attr("disabled","disabled");
			   },
			   error:function(){
				   ui.msg('信息加载错误', 0);
				   btn.attr("disabled","disabled");
			   }
		});
	}else{
		ui.confirm('确定初始化该队列?',function(){
			$.ajax({
				   type: "POST",
				   dataType:"json",
				   cache: false,
				   url: _ctx + "/registry/tlq_sq_init.do",
				   data:{queueName:queueName,destQueueName:destQueueName,destIp:destIp},
				   beforeSend:function(){
					   btn.attr("disabled","disabled");
				   },
				   success: function(resp){
					   if(resp.status == '1'){
						   ui.msg(resp.msg, 1);
						   ui.go(_ctx + '/registry/tlq_qcu.do');
					   }else{
						   ui.msg(resp.msg, 0);
					   }
					   btn.attr("disabled","disabled");
				   },
				   error:function(){
					   ui.msg('信息加载错误', 0);
					   btn.attr("disabled","disabled");
				   }
			});
		});
	}
	
}


function saveTlq(obj){
	var btn=$(obj);
	var fromIp=$("#ip").val();
	var toIp=$("#toIp").val();
	if ('' == toIp){
		ui.msg('请输入新迁移的Tlq IP地址', 0);
		$("#toIp").focus();
		return false;
	}
	ui.confirm('确认迁移tlq从['+fromIp+']到['+toIp+']?',function(){
		$.ajax({
			   type: "POST",
			   dataType:"json",
			   cache: false,
			   url: _ctx + "/registry/move_tlq.do",
			   data:{fromIp:fromIp,toIp:toIp},
			   beforeSend:function(){
				   btn.attr("disabled","disabled");
			   },
			   success: function(resp){
				   if(resp.status == '1'){
					   ui.msg(resp.msg, 1);
					   ui.go(_ctx + '/registry/tlq_qcu.do');
				   }else{
					   ui.msg(resp.msg, 0);
				   }
				   btn.attr("disabled","disabled");
			   },
			   error:function(){
				   ui.msg('信息加载错误', 0);
				   btn.attr("disabled","disabled");
			   }
		});
	});
}

/**
 * 删除本地队列
 */
function deleteLq(queueName,obj){
	var btn = $(obj);
	ui.confirm('确认删除该队列?',function(){
		$.ajax({
			   type: "POST",
			   dataType:"json",
			   cache: false,
			   url: _ctx + "/registry/tlq_lq_delete.do",
			   data:{queueName:queueName},
			   beforeSend:function(){
				   btn.attr("disabled","disabled");
			   },
			   success: function(resp){
				   if(resp.status == '1'){
					   ui.msg(resp.msg, 1);
					   ui.go(_ctx + '/registry/tlq_qcu.do');
				   }else{
					   ui.msg(resp.msg, 0);
				   }
				   btn.attr("disabled","disabled");
			   },
			   error:function(){
				   ui.msg('信息加载错误', 0);
				   btn.attr("disabled","disabled");
			   }
		});
	});
}



/**
 * 删除发送队列
 */
/* function deleteSq(queueName,obj){
	var btn = $(obj);
	ui.confirm('确认删除该队列?',function(){
		$.ajax({
			   type: "POST",
			   dataType:"json",
			   cache: false,
			   url: _ctx + "/registry/tlq_sq_delete.do",
			   data:{queueName:queueName},
			   beforeSend:function(){
				   btn.attr("disabled","disabled");
			   },
			   success: function(resp){
				   if(resp.status == '1'){
					   ui.msg(resp.msg, 1);
					   ui.go(_ctx + '/registry/tlq_qcu.do');
				   }else{
					   ui.msg(resp.msg, 0);
				   }
				   btn.attr("disabled","disabled");
			   },
			   error:function(){
				   ui.msg('信息加载错误', 0);
				   btn.attr("disabled","disabled");
			   }
		});
	});
} */

function showOrHide(){
  var dis=$("#tlqMove").css("display");
  if(dis=='block'){
    $("#tlqMove").css("display","none");
  }else{
  $("#tlqMove").css("display","block");
  }
}
</script>
</head>
<body>
<%@ include file="/WEB-INF/view/common/topbar.jsp"%>
<c:set var="vo" value="${_data}"/>
<div class="main-container" id="main-container">
	<div class="main-container-inner">
		<%@ include file="/WEB-INF/view/common/sidebar.jsp"%>
		<div class="main-content">
			<div class="breadcrumbs" id="breadcrumbs">
				<ul class="breadcrumb">
					<li>
						<i class="icon-home home-icon"></i>
						<a href="#">首页</a>
					</li>
					<li><a href="#">交换管理</a></li>
					<li><a href="#">传输通道管理</a></li>
					<li class="active">TonglinkQ资源分配</li>
				</ul>
			</div>

			<div class="page-content">
				<div class="row">
					<div class="col-xs-12">
						<div class="widget-box">
							<div class="widget-header widget-header-flat">
								<h5 class="smaller lighter grey">
									<i class="icon-desktop"></i> TonglinkQ 基本信息
									TLQ地址:
									<select name="ip" onchange="reload(this)" id="ip">
									
										<c:forEach var="vo" items="${tlqlines }">
										   <option value="${vo.brokerIp}" <c:if test="${vo.brokerIp == param.ip }">selected</c:if>>${vo.brokerIp }</option>
										</c:forEach>
									</select>
								</h5>
								<div class="widget-main" style="display: none;" id="tlqMove" >
									<div class="form-group">
										<div style="padding-top:5px;width:55px;float:left;">Tlq IP地址</div>
										<div class="col-sm-9">
											<input id="toIp" type="text" class="col-sm-5"  datatype="require" msg="必填项，请输入新Tlq IP地址"
										   title="新Tlq IP地址" placeholder="请输入新Tlq IP地址"/>
										</div>
									</div>
									<div class="form-group">
									<div class="col-md-offset-1 col-md-6" style="padding-top:7px;">
										<button onclick="saveTlq(this)" class="btn btn-xs btn-primary"><i class="icon-ok bigger-110"></i>保存</button>
									   <button onclick="showOrHide()" class="btn btn-xs btn-primary"><i class="icon-arrow-left bigger-110"></i>取消</button>
									</div>
									</div>
								</div>
								<div class="widget-toolbar">
									<a href="#" data-action="collapse"> <i class="icon-chevron-up"></i> </a>
								</div>
							</div>
							<div class="widget-body">
								<div class="widget-main">
									<c:if test="${tlqStoped}">
									<div class="alert alert-danger">
										<strong><span class="icon-warning-sign"></span> TonglinkQ 状态异常！请联系管理员从以下提示排查问题：</strong>
										<ul class="list-unstyled spaced2">
											<li>
												<i class="icon-circle"></i>
												请确认TonglinkQ 服务器已经正常启动
											</li>
											<li>
												<i class="icon-circle"></i>
												请确认TonglinkQ 远程管理支持服务已经正常启动
											</li>
											<li>
												<i class="icon-circle"></i>
												请确认TonglinkQ 对应的队列控制单元(qcu_turbo)已经成功创建并处于工作状态
											</li>
											<li>
												<i class="icon-circle"></i>
												请确认本应用的配置文件app.properties中关于tlq的配置项已经得到正确的配置
											</li>
										</ul>
									</div> 
									</c:if>
									<!-- 
									<h4 class="header smaller lighter blue">
										<i class="icon-sign-blank blue"></i>&nbsp;&nbsp;TonglinkQ 基本信息
									</h4>
									-->
									<c:if test="${!tlqStoped}">
									<div class="profile-user-info profile-user-info-striped">
										<div class="profile-info-row">
											<div class="profile-info-name">TonglinkQ版本号</div>
											<div class="profile-info-value">
											<span class="editable">${tlqInfo.Version}&nbsp;</span>
											</div>
										</div>
										<div class="profile-info-row">
											<div class="profile-info-name">队列控制单元</div>
											<div class="profile-info-value">
											<span class="editable">${tlqQcu.qcuName}&nbsp;</span>
											</div>
										</div>
										<div class="profile-info-row">
											<div class="profile-info-name">QCU状态</div>
											<div class="profile-info-value">
												<c:if test="${'Stopped' == qcuState }">
													<span class="editable red tipMe pointer" title="QCU目前处于停止状态，您可以通过下面的启动QCU按钮启动QCU"><i class="icon-warning-sign"></i> ${qcuState }&nbsp;</span>
												</c:if>
												<c:if test="${'Working' == qcuState }">
													<span class="editable green tipMe pointer" title="QCU目前处于正常工作状态"><i class="icon-ok"></i> ${qcuState }&nbsp;</span>
												</c:if>
												<c:if test="${'Working' != qcuState && 'Stopped' != qcuState}">
													${qcuState}&nbsp;
												</c:if>
											</div>
										</div>
										<div class="profile-info-row">
											<div class="profile-info-name">创建本地队列的最大消息数</div>
											<div class="profile-info-value">
											<span class="editable">${tlqQcu.dyLocalQueMsgNum}&nbsp;</span>
											</div>
										</div>
										<div class="profile-info-row">
											<div class="profile-info-name">创建发送队列的最大消息数</div>
											<div class="profile-info-value">
											<span class="editable">${tlqQcu.dySendQueMsgNum}&nbsp;</span>
											</div>
										</div>
										<div class="profile-info-row">
											<div class="profile-info-name">本地队列中消息动态可用空间</div>
											<div class="profile-info-value">
											<span class="editable">${tlqQcu.dyLocalQueSpaceSize}(KB)&nbsp;</span>
											</div>
										</div>
										<div class="profile-info-row">
											<div class="profile-info-name">本地队列数据存储区预留空间</div>
											<div class="profile-info-value">
											<span class="editable">${tlqQcu.dyLocalQueDataBuff}(KB)&nbsp;</span>
											</div>
										</div>
										<div class="profile-info-row">
											<div class="profile-info-name">发送队列中消息动态可用空间</div>
											<div class="profile-info-value">
											<span class="editable">${tlqQcu.dySendQueSpaceSize}(KB)&nbsp;</span>
											</div>
										</div>
										<div class="profile-info-row">
											<div class="profile-info-name">发送队列数据存储区预留空间</div>
											<div class="profile-info-value">
											<span class="editable">${tlqQcu.dySendQueDataBuff}(KB)&nbsp;</span>
											</div>
										</div>
										<div class="profile-info-row">
											<div class="profile-info-name">客户端连接最大数</div>
											<div class="profile-info-value">
											<span class="editable">${tlqQcu.connIdMaxNum} &nbsp;</span>
											</div>
										</div>
										<div class="profile-info-row">
											<div class="profile-info-name">操作</div>
											<div class="profile-info-value">
												<c:if test="${qcuState != 'Stopped' }">
													<a id="stopQcuBtn" href="javascript:void(0)" onclick="stopQcu();" class="btn btn-xs btn-danger tipMe" title="注意：停止QCU需要30秒左右的时间，在此过程请耐心等待，请不要刷新本页面，也不要进行其他操作。">
														<i class="icon-pause"></i> 停止QCU 
													</a>
												</c:if>
												<c:if test="${qcuState == 'Stopped' }">
													<a id="startQcuBtn" href="javascript:void(0)" onclick="startQcu();"  class="btn btn-xs btn-success tipMe" title="注意：启动QCU需要30秒左右的时间，在此过程请耐心等待，请不要刷新本页面，也不要进行其他操作。">
														<i class="icon-play"></i> 启动QCU 
													</a>
												</c:if>
												<a href="${ctx}/registry/tlq_qcu_edit.do?ip=${ip}" class="btn btn-xs btn-primary" title="停止QCU">
													<i class="icon-pencil"></i> 修改QCU参数 
												</a>
												
												<a href="#" class="btn btn-xs btn-primary" title="迁移tlq"  onclick="showOrHide()">
													<i class="icon-pencil"></i> 迁移
												</a>
											</div>
										</div>
									</div>
									</c:if>
								</div>
							</div>
						</div>
						
						<c:if test="${!tlqStoped}">
						<div class="widget-box">
							<div class="widget-header widget-header-flat">
								<h5 class="smaller lighter grey">
									<i class="icon-desktop"></i> TonglinkQ 队列信息
								</h5>
								<div class="widget-toolbar">
									<a class="btn btn-primary btn-xs" href="${ctx}/registry/tlq_lq_add.do"><i class="icon-plus-sign icon-on-right"></i> 新增本地队列&nbsp;&nbsp;</a>
									<a class="btn btn-primary btn-xs" href="${ctx}/registry/tlq_sq_add.do"><i class="icon-plus-sign icon-on-right"></i> 新增发送队列&nbsp;&nbsp;</a>
									<a href="#" data-action="collapse"> <i class="icon-chevron-up"></i> </a>
								</div>
							</div>
							<div class="widget-body">
								<div class="widget-main">
									<!--
									<h4 class="header smaller lighter blue">
										<i class="icon-sign-blank blue"></i>&nbsp;&nbsp;TonglinkQ 队列信息
									</h4>
									<div class="text-right">
										<a class="btn btn-primary btn-xs" href="#"><i class="icon-plus-sign icon-on-right"></i> 新增&nbsp;&nbsp;</a>
									</div>
									-->
									<ul class="nav nav-tabs padding-12 tab-color-blue background-blue" id="myTab">
										<li class="active">
											<a data-toggle="tab" href="#sq"><i class="green icon-signout bigger-110"></i>发送队列</a>
										</li>
										<li >
											<a data-toggle="tab" href="#lq"><i class="green icon-signin bigger-110"></i>本地队列</a>
										</li>
									</ul>
									
									<div class="tab-content" style="border:1px solid #c5d0dc;">
										<div id="lq" class="tab-pane">
											 <a class="btn btn-xs btn-primary tipMe pull-right" href="javascript:void(0)" style="margin-bottom: 10px;" onclick="initLqAll()" title="初始化所有未初始化的队列">
												<i class="icon-cog bigger-130"></i>一键初始化
											</a>
											<table class="table table-striped table-bordered table-hover mg-top12">
												<thead>
													<tr>
														<%--
														<th class="center" >序号</th>
														--%>
														<th>序号</th>
														<th>队列名称</th>
														<th>状态</th>
														<th>队列消息</th>
														<th>配置消息</th>
														<th>剩余消息</th>
														<th>分配空间(KB)</th>
														<th>剩余空间(KB)</th>
														<th>消费者</th>
														<th>操作</th>
													</tr>
												</thead>
												<tbody>
												<c:forEach var="vo" items="${lqList}" varStatus="idx">
												<c:if test="${'1' == vo.isQueueExist }">
													<tr>
														<td align="center">${idx.index + 1}</td>
														<td><span class="tipMe" title="${vo.queueDesc}">${vo.queueName}</span></td>
														<td>${vo.status}</td>
														<td>${vo.usedMsgNum}</td>
														<td>${vo.configMsgNum}</td>
														<td>${vo.remainMsgNum}</td>
														<td>${vo.mallocSpace}</td>
														<td>${vo.remainSpace}</td>
														<td>${vo.gettor}</td>
														<td>
															<div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
																<a name="initBnt" class="grey tipMe" href="javascript:void(0)" title="队列已成功初始化" disabled="disabled">
																	<i class="icon-cog bigger-130"></i>
																</a>
																<a class="green tipMe" href="${ctx}/registry/tlq_lq_update.do?queueName=${vo.queueName}"   title="配置参数">
																	<i class="icon-edit bigger-130"></i>
																</a>
																<%-- <a class="red" href="javascript:void(0);" onclick="deleteLq('${vo.queueName}',this);" title="删除">
																	<i class="icon-trash bigger-130"></i>
																</a> --%>
															</div>
														</td>
													</tr>
												</c:if>
												<c:if test="${'0' == vo.isQueueExist }">
													<tr class="red">
														<td align="center">${idx.index + 1}</td>
														<td><span class="tipMe" title="${vo.queueDesc}">${vo.queueName}</span></td>
														<td>未创建</td>
														<td>-</td>
														<td>-</td>
														<td>-</td>
														<td>-</td>
														<td>-</td>
														<td>-</td>
														<td>
															<div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
																<a name="initBnt" class="green tipMe" href="javascript:void(0)"  onclick="initLq('${vo.queueName}',this)" title="该队列尚未初始化，请点击按钮进行初始化队列">
																	<i class="icon-cog bigger-130"></i>
																</a>
																<%-- <a class="red" href="javascript:void(0);" onclick="deleteLq('${vo.queueName}',this);" title="删除">
																	<i class="icon-trash bigger-130"></i>
																</a> --%>
															</div>
														</td>
													</tr>
												</c:if>
													
												</c:forEach>
												</tbody>
											</table>
										</div>

										<div id="sq" class="tab-pane in active">
										    <a class="btn btn-xs btn-primary tipMe pull-right" style="margin-bottom: 10px;" href="javascript:void(0)"  onclick="initSqAll()" title="初始化所有未初始化的队列">
												<i class="icon-cog bigger-130"></i>一键初始化
											</a>
											<table class="table table-striped table-bordered table-hover mg-top12">
												<thead>
													<tr>
														<%--
														<th class="center" >序号</th>
														--%>
														<th>序号</th>
														<th>队列名称</th>
														<th>目的节点</th>
														<th>目的队列名称</th>
														<th>连接状态</th>
														<th>队列消息</th>
														<th>配置消息</th>
														<th>剩余消息</th>
<!-- 														<th>分配空间(KB)</th> -->
														<th>剩余空间(KB)</th>
														<th>连接主机</th>
<!-- 														<th>进程</th> -->
														<th>操作</th>
													</tr>
												</thead>
												<tbody>
												<c:forEach var="vo" items="${sqList}" varStatus="idx">
												<c:if test="${'1' == vo.isQueueExist }">
													<tr>
														<td align="center">${idx.index + 1}</td>
														<td><span class="tipMe" title="${vo.queueDesc}">${vo.queueName}</span></td>
														<td>${vo.toQueName}</td>
														<td>${vo.destQueueName}</td>
														<td>${vo.status}</td>
														<td>${vo.usedMsgNum}</td>
														<td>${vo.configMsgNum}</td>
														<td>${vo.remainMsgNum}</td>
<%-- 														<td>${vo.mallocSpace}</td> --%>
														<td>${vo.remainSpace}</td>
														<td>${vo.linkIp}</td>
<%-- 														<td>${vo.sendProcId}</td> --%>
														
														<td>
															<div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
																<a name="initBnt" class="grey tipMe" href="javascript:void(0)" title="队列已成功初始化" disabled="disabled">
																	<i class="icon-cog bigger-130"></i>
																</a>
																<a class="green tipMe" href="${ctx}/registry/tlq_sq_update.do?queueName=${vo.queueName}"   title="配置参数">
																	<i class="icon-edit bigger-130"></i>
																</a>
																<%-- <a class="red" href="javascript:void(0);" onclick="deleteSq('${vo.queueName}',this);" title="删除">
																	<i class="icon-trash bigger-130"></i>
																</a> --%>
															</div>
														</td>
													</tr>
												</c:if>
												<c:if test="${'0' == vo.isQueueExist }">
													<tr class="red">
														<td align="center">${idx.index + 1}</td>
														<td><span class="tipMe" title="${vo.queueDesc}">${vo.queueName}</span></td>
														<td>-</td>
														<td align = "center">未创建</td>
														<td>-</td>
														<td>-</td>
														<td>-</td>
														<td>-</td>
														<td>-</td>
														<td>${vo.destIp}</td>
														
														<td>
															<div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
																<a name="initBnt" class="green tipMe" href="javascript:void(0)"  onclick="initSq('${vo.queueName}','${vo.destQueueName}','${vo.destIp}',this)" title="该队列尚未初始化，请点击按钮进行初始化队列">
																	<i class="icon-cog bigger-130"></i>
																</a>
																<%-- <a class="red" href="javascript:void(0);" onclick="deleteSq('${vo.queueName}',this);" title="删除">
																	<i class="icon-trash bigger-130"></i>
																</a> --%>
															</div>
														</td>
													</tr>
												</c:if>
												</c:forEach>
												</tbody>
											</table>
										</div>
									</div>
								</div>
							</div>
						</div>
						</c:if>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
</body>
</html>
